home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 55
/
055.d81
/
source code
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
6KB
|
160 lines
100 rem source to compiled break-fast. design enhancements by loadstar
110 poke787,1:gosub750:poke53272,21:print"":clr:rem c1988 g. de blqis
120 forx=1to38:a$=a$+"[207]":next:poke53280,6:poke53281,0:poke646,0:dx%=1:dy%=1:px%=20
130 py%=18:print"[147][159]"tab(14);"break-faster":pp%=32:pp$="[192][192][192][192][192]":a$=""+a$+""
140 s=54272:pokes+5,3:pokes+6,3:ifpeek(787)=1thensc=20000
150 ifpeek(787)>1thensc=peek(2040)*256+peek(2041)+20000
160 print"";a$;"";a$;:vp=.95:ifpeek(787)=2thenvp=.9
170 ifpeek(787)=3thenvp=.85
180 ifpeek(787)=4thenvp=.8
190 ifpeek(787)=5thenvp=.66666
200 ifpeek(787)=6thenvp=.5
210 ifpeek(787)=7thenvp=.33333
220 ifpeek(787)=8thenvp=.25
230 ifpeek(787)=9thenvp=.2
240 ifpeek(787)=10thenvp=.1
250 print"[153]";a$;"[158]";a$;"";a$;"[144]";
260 print"";a$;"";a$;
270 print"[153]";a$;"[158]";a$;"";a$;"[144]":gosub680
280 bm%=99:ifpeek(787)>1thengosub780
290 ifpeek(787)>1thenprint""tab(28)"spoiler:"
300 poke198,0:poke214,22:print:printtab(pp%);pp$:zz%=px%+40*py%
310 ifpeek(653)=7andpeek(197)=1thenpoke787,10
320 ifpeek(197)=62then520
330 ifsc=0then520
340 ifbp%>30+rnd(ti)*21thengosub1410
350 ifzz%<1000thenpoke1024+zz%,81:poke55296+zz%,1
360 ifpeek(653)=1then360
370 iflp<>pp%thenpoke214,22:print:printtab(lp)" ";
380 lp=pp%:x=(peek(56320)and15):ifx=11orpeek(197)=47orpeek(653)=2thenpp%=pp%-2.5
390 ifpp%<1thenpp%=1
400 ifx=7orpeek(197)=44orpeek(197)=2thenpp%=pp%+2.5:ifpp%>35thenpp%=34
410 poke214,22:print:printtab(pp%);pp$
420 ifzz%<1000andzz%>1thenpoke1024+zz%,32
430 px%=px%+dx%:ifpx%>38thendx%=-dx%:px%=38
440 ifpx%<1thendx%=-dx%:px%=1
450 py%=py%+dy%:ifpy%<=1thendy%=-dy%
460 zz%=peek(1024+px%+40*py%)
470 ifpy%>23thensc=int(vp*sc):bp%=0:gosub680:gosub690:dy%=-dy%:gosub780:goto300
480 ifzz%=207thensc=sc+100*peek(787):bp%=bp%+1:h=h+1:gosub680:gosub1370:dy%=-dy%:goto300
490 ifh=380thengosub1440:poke2040,sc/256:poke2041,sc-int((sc/256))*256:run120
500 ifzz%<>81andzz%<>32thendy%=-dy%:gosub1340:goto300
510 goto300
520 print"[147]":x$=chr$(13)
530 ifpeek(787)=11thenprint"wow! you did it! you made level ten!"
540 ifpeek(787)=11thenprint"you beat the ball!":goto560
550 print"the game ends at level[158]"peek(787)
560 print"your score is[158]"sc""
570 ifsc>=20000thenprint"and hey! you made it this far without"x$"losing points
580 [139]sc[179]20000[167][153]"but you didn't break even. c'est la vie!"
590 [151]214,20:[153]:[153]"do you want to play again? (y/n)":[151]2048,0
600 [161]a$:[139]a$[178]"y"[167][138]
610 [139]a$[178]"n"[167] 630
620 [137]600
630 [159]15,8,15,"r0:hello connect=hello connect":[132]15,er:[160]15
640 [139] er[179][177]63 [167] [153]"load":[128]
650 a$[178]"hello connect":q$[178][199](34)
660 [153]"stoploadload"q$a$q$",8"
670 [153]"run":[151]631,13:[151]632,13:[151]198,2:[128]
680 [153]"score: "sc:[142]
690 [141]1380
700 dd[178][187]([187](ti)[172]50)[172]11:[139]dd[179][178]5[167][141]730:[142]
710 [139]dd[177]5[167][139]dx%[179]1[167]dx%[178][171]2:[142]
720 dx%[178]2:[142]
730 [139]dx%[179]0[167]dx%[178][171]1:[142]
740 dx%[178]1:[142]
750 [151]53280, 0:[151]53281, 0:[153]"load";:[141]1090
760 [161]a$:[139]a$[179][177]" "[167]760
770 [141]830:[153]"load"[199](142):[142]
780 bm%[178]bm%[170]1:[139][194](787)[177]1[167][153]""[163]36)" "[163]36)100[171]bm%
790 [139]bm%[179]100[176][194](787)[178]1[167][142]
800 [151]214,13:[153]:x$[178]"(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)"
810 [129]i[178]1[164]6:[153]"open "[200](x$,20[171]i)[163]19[170]i)[200](x$,20[171]i):[130]:bm%[178]0
820 [151]646,1:[142]
830 [153]"loadwait listb r e a k - f a s t e r":[151]53272,21
840 [153]" totototoandandandposposposnewnewnewposposposandandandtotototo"
850 [153]" print# the rules "
860 [153]" poketab(tab(tab(tab(usrusrusrfrefrefrenewnewnewwaitfrefrefreusrusrusrtab(tab(tab(tab("
870 [153]
880 [153]"tab(tab(tab(tab(tab(print#tab(tab(tab(tab(tab(tab(listtab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(listtab(tab(tab(tab(tab(print#tab(tab(tab(tab(tab(tab(poketab(tab(tab(tab(tab(tab(";
890 [153]" print#in this compiled version of break-fast"
900 [153]" you start with a whopping 20000 points."
910 [153]"on your score will increment by 100 for"
920 [153]" each block busted."
930 [153]" listyour score will decrease by 5 percent"
940 [153]" each time the ball hits bottom. watch"
950 [153]" out! don't let the paddle dribble"
960 [153]" the ball! you'll lose points quickly."
970 [153]" the game ends when you have no points!print#"
980 [153]" level two of the game starts after all"
990 [153]" blocks are gone. the spoiler listblocks"
1000 [153]" will reappear listafter 100 listmisses."
1010 [153]
1020 [153]" c=wait moves left / crsr-rightwait moves right"
1030 [153]"on joystick and <wait >wait keys also work"
1040 [153]" shift to pause/q to quit"
1050 [153]" open press space to play break-faster ";
1060 [153]"";:[151]198,0
1070 [161]a$:[139]a$[179][177]" "[167]1070
1080 [153]"load":[141]1490:[142]
1090 [153]"load"
1100 [153]" listnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnew"
1110 [153]" print# LOADSTAR PRESENTS "
1120 [153]" pokenewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnew"
1130 [153]
1140 [153]
1150 [153]
1160 [153]" * waitrnd"
1170 [153]" BREAK-FASTER "
1180 [153]" "
1190 [153]"tab(tab(tab(tab(tab(tab(tab(tab(tab(close closeDemo of Compiledclose waittab(tab(tab(tab(tab(tab(tab(tab(tab(";
1200 [153]" close close"
1210 [153]"tab(tab(tab(tab(tab(tab(tab(tab(tab( Break-Fast (BASIC) waittab(tab(tab(tab(tab(tab(tab(tab(tab(";
1220 [153]" close"
1230 [153]"tab(tab(tab(tab(tab(tab(tab(tab(tab( closewaittab(tab(tab(tab(tab(tab(tab(tab(tab(";
1240 [153]" By G. De Blois "
1250 [153]" log waitcos"
1260 [153]
1270 [153]" print#Compiled with BASIC 64 by listABACUS"
1280 [153]" tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab(tab("
1290 [153]" newnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnew"
1300 [153]" print# PRESS SPACEcloseTOcloseCONTINUE "
1310 [153]" pokefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefrefre"
1320 [153]
1330 [153]"";:[151]198,0:[142]
1340 [151]54296,15:[151]s[170]1,80:[151]s[170]4,17:xt[178]ti
1350 [139]ti[171]xt[179]2[167]1350
1360 [151]s[170]4,16:[142]
1370 [151]54296,15:[151]s[170]1,160:[151]s[170]4,17:xt[178]ti:[137]1350
1380 [151]54296,15:[151]s[170]1,40:[151]s[170]4,17:xt[178]ti:[137]1350
1390 [153][194](197):[137]1390
1400 s[178]54272
1410 [129]xx[178]0[164]2000[169]40:[151]53281,xx[173]10:[151]53280,(xx[170]1)[173]10:sc[178]sc[170]50[172][194](787)
1420 [141]1370:[141]1430:[130]:[151]53281,0:[151]53280,6:bp%[178]0:[142]
1430 [153]"bonus! "sc:[142]
1440 xt[178][194](787):[139]xt[179]255[167][151]787,xt[170]1
1450 [139][194](787)[178]11[167]520
1460 [141]1470:[142]
1470 [153]"loadpoints earned:sys"sc
1480 [153]"bonus for round"[194](787)[171]1":sys 20000":[151]198,0
1490 [153]"each block now worthsys"100[172]([194](787)[170]1)
1500 [153]"each bonus now worthsys"2000[172]([194](787)[170]1)
1510 [139][194](787)[178]1[167][153]"you lose sys5% of your points each miss!"
1520 [139][194](787)[177]1[167][153]"each miss now costs:sys ";
1530 [139][194](787)[178]2[167][153]"10%"
1540 [139][194](787)[178]3[167][153]"15%"
1550 [139][194](787)[178]4[167][153]"20%"
1560 [139][194](787)[178]5[167][153]"33%"
1570 [139][194](787)[178]6[167][153]"50%"
1580 [139][194](787)[178]7[167][153]"66%"
1590 [139][194](787)[178]8[167][153]"75%"
1600 [139][194](787)[178]9[167][153]"80%"
1610 [139][194](787)[178]10[167][153]"90%"
1620 [139][194](787)[177]1[167][153]"syswarning! openspoilerswait are active!"
1630 [153]"the penalty sysincreases